package com.marry.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ml
 * @create 2017-08-29--16:54
 */
@Controller
public class HelloController {

    @RequestMapping("/")
    public String index(){

        return "aaaa";
    }
    @RequestMapping(value = "/bbb")
    public String index2(){

        return "bbbb";

    }
    @RequestMapping(value = "hello")
    public String hello(Model model){
        model.addAttribute("name","沈佳佳");
        return "hello";

    }
}
